home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / cakit / cfloat.h.z / cfloat.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  764 b   |  54 lines

  1.  
  2. /*
  3.  * Computer Algebra Kit (c) 1993,98 by Comp.Alg.Objects.  All Rights Reserved.
  4.  * $Id: cfloat.h,v 1.1.1.1 1999/03/22 21:48:43 stes Exp $
  5.  */
  6.  
  7. #ifndef __CAFLOAT_HEADER__
  8. #define __CAFLOAT_HEADER__
  9.  
  10. #include "cobject.h"
  11.  
  12. typedef float float_t;
  13.  
  14. @interface Float : CAObject
  15. {
  16.   float_t value;
  17. }
  18.  
  19. + new;
  20. + floatValue:(float)floatValue;
  21. + str:(STR)aString;
  22.  
  23. - (unsigned) hash;
  24. - (BOOL) isEqual:b;
  25. - (float) floatValue;
  26. - floatValue:(float)f;
  27.  
  28. - (int) sign;
  29. - (int) compare:b;
  30.  
  31. - zero;
  32. - (BOOL) isZero;
  33. - (BOOL) isOpposite:b;
  34. - negate;
  35. - double;
  36. - add:b;
  37. - subtract:b;
  38.  
  39. - one;
  40. - minusOne;
  41. - (BOOL) isOne;
  42. - (BOOL) isMinusOne;
  43. - square;
  44. - multiply:b;
  45. - inverse;
  46. - divide:b;
  47.  
  48. - (BOOL) printsLeadingSign;
  49. - printOn:(IOD)aFile;
  50. @end
  51.  
  52. #endif                /* __CAFLOAT_HEADER__ */
  53.  
  54.